Skip to content

Conversation

@norm
Copy link
Contributor

@norm norm commented May 19, 2022

PR#18991 introduced directly navigating to a DAG when selecting one from the typeahead search results. Unfortunately, the search results also includes DAG owner names, and selecting one of those navigates to a DAG with that name, which almost certainly doesn't exist.

This extends the autocompletion endpoint to return the type of result, and adjusts the typeahead selection to use this to know which way to navigate.

Fixes #23670.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragement file, named {pr_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels May 19, 2022
@norm norm force-pushed the autocomplete-inc-owners branch 2 times, most recently from 46768de to aff30b3 Compare May 24, 2022 08:40
PR#18991 introduced directly navigating to a DAG when selecting one
from the typeahead search results. Unfortunately, the search results
also includes DAG owner names, and selecting one of those navigates to
a DAG with that name, which almost certainly doesn't exist.

This extends the autocompletion endpoint to return the type of result,
and adjusts the typeahead selection to use this to know which way to
navigate.
@norm norm force-pushed the autocomplete-inc-owners branch from aff30b3 to 452df69 Compare May 24, 2022 08:42
@norm norm marked this pull request as ready for review May 24, 2022 08:45
@norm
Copy link
Contributor Author

norm commented May 24, 2022

@ashb You also mentioned possibly moving the endpoint from views to the API, do you want that done in this PR?

@ashb
Copy link
Member

ashb commented May 24, 2022

@ashb You also mentioned possibly moving the endpoint from views to the API, do you want that done in this PR?

No, probably not. Feels like a separate PR

@ashb ashb added this to the Airflow 2.3.2 milestone May 24, 2022
@ashb ashb added the type:bug-fix Changelog: Bug Fixes label May 24, 2022
@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label May 24, 2022
@github-actions
Copy link

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
@ashb ashb merged commit 29afd35 into apache:main May 24, 2022
@ashb ashb deleted the autocomplete-inc-owners branch May 24, 2022 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues okay to merge It's ok to merge this PR as it does not require more tests type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Airflow 2.3.0: can't filter by owner if selected from dropdown

2 participants